﻿@model Kojarskiy.Models.RegisterModel
@{
    ViewBag.Title = "Регистрация нового пользователя";
}

@using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) 
{
    @Html.AntiForgeryToken()
    <div class="form-group">
        <div class="col-sm-2 control-label">
            
        </div>
        <div class="col-sm-10">
            <h1>@ViewBag.Title</h1>
            <div class="bg-danger" >@Html.ValidationSummary()</div>
        </div>
    </div> 

    <div class="form-group">
        
        <label for="UserName" class="col-sm-2 control-label">Имя пользователя</label>    
        <div class="col-sm-10">
            @Html.TextBoxFor(m => m.UserName, new {@class = "form-control"})
        </div>
    </div>
    <div class="form-group">
        <label for="Password" class="col-sm-2 control-label">Пароль</label>    

        <div class="col-sm-10">
            @Html.PasswordFor(m => m.Password, new {@class = "form-control"})
        </div>
    </div>
    <div class="form-group">
        <label for="Password" class="col-sm-2 control-label">Подтверждение пароля</label>    

        <div class="col-sm-10">
            @Html.PasswordFor(m => m.ConfirmPassword, new {@class = "form-control"})
        </div>
    </div>
    <div class="form-group">
        
        <label for="Email" class="col-sm-2 control-label">Email</label>    
        <div class="col-sm-10">
            @Html.TextBoxFor(m => m.Email, new {@class = "form-control"})
        </div>
    </div>     
    <div class="form-group">
        
        <label for="Phone" class="col-sm-2 control-label">Телефон</label>    
        <div class="col-sm-10">
            @Html.TextBoxFor(m => m.Phone, new {@class = "form-control"})
        </div>
    </div>    
    <div class="form-group">
        
        <label for="DeliveryAddress" class="col-sm-2 control-label">Адрес доставки</label>    
        <div class="col-sm-10">
            <textarea name="DeliveryAddress" id="DeliveryAddress" class = "form-control"></textarea>
        </div>
    </div>       
    
    <div class="form-group">       
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default">Создать пользователя</button>
            </div>
    </div>
       
}

